<%--
  Created by IntelliJ IDEA.
  User: computer
  Date: 2021/6/6
  Time: 14:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<h1 align="center" style="color: #1a54e8">修改项目信息</h1>
<table class="update">
<%--    <tr>--%>
<%--        <td>Proid</td>--%>
<%--        <td><input id="proid" type="text" name="proid" value="${pro.proId}"></td>--%>
<%--    </tr>--%>
    <tr>
        <td>项目名</td>
        <td><input id="proname" type="text" name="proname" value="${pro.proName}"></td>
    </tr>
    <tr>
        <td>开始日期</td>
        <td><input id="begindate" type="date" name="begindate" value="${pro.beginDate}" class="date_picker"></td>
    </tr>
    <tr>
        <td>结束日期</td>
        <td><input id="enddate" type="date" name="enddate" value="${pro.endDate}" class="date_picker"></td>
    </tr>
    <tr>
        <td>客户</td>
        <td><input id="customer" type="text" name="customer" value="${pro.customer}"></td>
    </tr>
<%--    <tr>--%>
<%--        <td>项目状态</td>--%>
<%--        <td><input id="state" type="text" name="state" value="${pro.state}"></td>--%>
<%--    </tr>--%>
    <tr>
        <td>备注</td>
        <td><textarea id="remark" name="remark" cols="50" rows="5"
                      style="border-radius: 5px;background-color: rgba(255, 255, 255, 0.6);">${pro.remark}</textarea></td>
    </tr>
    <tr>
        <td>负责部门</td>
        <td><select name="select" id="belong">
            <option value="1" ${pro.belong== 1?"selected":""}>销售部</option>
            <option value="2" ${pro.belong== 2?"selected":""}>项目部</option>
            <option value="3" ${pro.belong== 3?"selected":""}>研发部</option>
        </select>
        </td>
<%--        <td><input id="belong" type="text" name="belong" value="${pro.belong}"></td>--%>
    </tr>
    <tr>
        <td></td>
        <td><span id="updateresult3" style="color: red"></span></td>
    </tr>
    <tr>
        <td colspan="2" style="text-align: center"><button style="color: white;background-color: #1a54e8" onclick="updatePro(${pro.proId})">提交修改</button></td>
    </tr>
</table>
